Optimal. Leaf size=44 \[ \frac{\tanh ^{-1}\left (\sqrt{5}-2 \sqrt{2} x\right )}{\sqrt{2}}-\frac{\tanh ^{-1}\left (2 \sqrt{2} x+\sqrt{5}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0347643, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {1161, 618, 206} \[ \frac{\tanh ^{-1}\left (\sqrt{5}-2 \sqrt{2} x\right )}{\sqrt{2}}-\frac{\tanh ^{-1}\left (2 \sqrt{2} x+\sqrt{5}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1161
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{1+2 x^2}{1-6 x^2+4 x^4} \, dx &=\frac{1}{4} \int \frac{1}{\frac{1}{2}-\sqrt{\frac{5}{2}} x+x^2} \, dx+\frac{1}{4} \int \frac{1}{\frac{1}{2}+\sqrt{\frac{5}{2}} x+x^2} \, dx\\ &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\frac{1}{2}-x^2} \, dx,x,-\sqrt{\frac{5}{2}}+2 x\right )\right )-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\frac{1}{2}-x^2} \, dx,x,\sqrt{\frac{5}{2}}+2 x\right )\\ &=\frac{\tanh ^{-1}\left (\sqrt{5}-2 \sqrt{2} x\right )}{\sqrt{2}}-\frac{\tanh ^{-1}\left (\sqrt{5}+2 \sqrt{2} x\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.0134752, size = 42, normalized size = 0.95 \[ \frac{\log \left (-2 x^2+\sqrt{2} x+1\right )-\log \left (2 x^2+\sqrt{2} x-1\right )}{2 \sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.073, size = 82, normalized size = 1.9 \begin{align*} -{\frac{ \left ( 2\,\sqrt{5}-10 \right ) \sqrt{5}}{10\,\sqrt{10}-10\,\sqrt{2}}{\it Artanh} \left ( 8\,{\frac{x}{2\,\sqrt{10}-2\,\sqrt{2}}} \right ) }-{\frac{2\,\sqrt{5} \left ( 5+\sqrt{5} \right ) }{10\,\sqrt{10}+10\,\sqrt{2}}{\it Artanh} \left ( 8\,{\frac{x}{2\,\sqrt{10}+2\,\sqrt{2}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{2 \, x^{2} + 1}{4 \, x^{4} - 6 \, x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.38009, size = 111, normalized size = 2.52 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (\frac{4 \, x^{4} - 2 \, x^{2} - 2 \, \sqrt{2}{\left (2 \, x^{3} - x\right )} + 1}{4 \, x^{4} - 6 \, x^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.101562, size = 46, normalized size = 1.05 \begin{align*} \frac{\sqrt{2} \log{\left (x^{2} - \frac{\sqrt{2} x}{2} - \frac{1}{2} \right )}}{4} - \frac{\sqrt{2} \log{\left (x^{2} + \frac{\sqrt{2} x}{2} - \frac{1}{2} \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.29373, size = 104, normalized size = 2.36 \begin{align*} -\frac{1}{4} \, \sqrt{2} \log \left ({\left | x + \frac{1}{4} \, \sqrt{10} + \frac{1}{4} \, \sqrt{2} \right |}\right ) + \frac{1}{4} \, \sqrt{2} \log \left ({\left | x + \frac{1}{4} \, \sqrt{10} - \frac{1}{4} \, \sqrt{2} \right |}\right ) - \frac{1}{4} \, \sqrt{2} \log \left ({\left | x - \frac{1}{4} \, \sqrt{10} + \frac{1}{4} \, \sqrt{2} \right |}\right ) + \frac{1}{4} \, \sqrt{2} \log \left ({\left | x - \frac{1}{4} \, \sqrt{10} - \frac{1}{4} \, \sqrt{2} \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]